package com.hongdee.crm.exsurance.service;

import com.hongdee.crm.exsurance.entity.TCrmCarExsurance;

import java.util.List;
import java.util.Map;

/**
 * Created by My on 2017/2/17.
 */
public interface ITCrmCarExsuranceService {
    /**
     * @param start 当前页面
     * @param limit 页面大小
     * @param data 查询条件集合
     * @return Map
     * @throws Exception
     * @desc    分页查询
     * @author 徐钦勇
     */
    public Map page(String start, String limit, Map data,String uid) throws Exception;
    /**
     * @param start 当前页面
     * @param limit 页面大小
     * @param contactName 联系人名称
     * @return Map
     * @throws Exception
     * @desc    分页查询
     * @author 徐钦勇
     */
    public Map pageOwner(String uid,String start, String limit, String contactName) throws Exception;
    /**
     * @param data TCrmCarExsurance实体
     * @return Map
     * @throws Exception
     * @desc
     * @author 徐钦勇
     */
    public TCrmCarExsurance saveOrUpdate(TCrmCarExsurance data) throws Exception;
    /**
     * @param start
     * @param limit
     * @return Map
     * @throws Exception
     * @desc
     * @author 徐钦勇
     */
    public Map impPage(String start, String limit,String oid) throws Exception;
    /**
     * 根据 实体 ID，删除记录
     *
     * @param objId
     * @return
     */
    public boolean clearById(String objId) throws Exception;
    /**
     * @param id 核销 id
     * @return Map
     * @throws Exception
     * @desc 导入确认
     * @author 徐钦勇
     */
    public void impConfirm(String id, String uid) throws Exception;
    /**
     * @param data 批量数据
     * @return Map
     * @throws Exception
     * @desc  延保批量确认
     * @author 徐钦勇
     */
    public void multiImpConfirm(List<Map> data, String uid) throws Exception;
    /**
     * @return Map
     * @throws Exception
     * @desc   延保全部确认
     * @author 徐钦勇
     */
    public void impConfirmAll(String uid) throws Exception;

    /**
     * @return
     * @throws Exception
     * @desc 删除全部待导入数据
     * @author 术洪超
     */
    public void impDelAll(String uid) throws Exception;


    /**
     * @param data 批量数据
     * @return Map
     * @throws Exception
     * @desc  批量删除待导入的数据
     * @author 术洪超
     */
    public void impDels(List<Map<Object,String>> data, String uid) throws Exception;


    /**
     * @param id 主键
     * @return Map
     * @throws Exception
     * @desc   延保明细
     * @author 徐钦勇
     */
    public Map info(String id) throws Exception;
}
